@extends('admin.common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />
@endsection

@section('html-body')
    <!-- content start -->
    <div id="content">
        <!-- cur-position start -->
        <div id="cur-position">
            <span class="tit">当前位置：</span>
            <a href="#">运营管理</a>
            <em> > </em>
            <a href="#">留言</a>
        </div>
        <!-- cur-position end -->

        <div class="table-box">
            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>真实姓名</th>
                    <th>标题</th>
                    <th>邮箱</th>
                    <th>内容</th>
                    <th>提交时间</th>
                </tr>
                </thead>
                <tbody id="fansinfo">
                @if(count($volunteerList) > 0)
                    @foreach($volunteerList as $user)
                        <tr>
                            <td>{{$user->id}}</td>
                            <td>
                                <div class="info-box">
                                    <p>
                                        <span class="icon icon-rzh"></span>
                                        <span class="name">{{$user->realname}}</span>
                                        <img class="sex" src="{{url('/images/admin/girl.gif')}}" alt="" style="">
                                    </p>
                                </div>
                            </td>
                            <td>{{$user->subject}}</td>
                            <td>{{$user->e_mail}}</td>
                            <td><a href="javascript:void(0);" data-id="" style="color: #ef1414;" onclick="upPop('{{$user->content}}')">查看内容</a>
                            <td>{{$user->created_at}}</td>
                            {{--<td><a class="btnLump btnLump1" href="">删除｜锁定</a></td>--}}
                        </tr>
                    @endforeach
                @endif
                </tbody>
            </table>
            <?php echo $volunteerList->render(); ?>
        </div>
    </div>
    <!-- content end -->

    <div class="upPop-box">
        <div class="backdrop"></div>
        <div id="upPop" class="info-pop tixian">
            <input type="hidden" name="id" id="classifyid" value=""/>
            <a class="close" href="javascript:void(0);"></a>
            <h3 id="title"></h3>
            <div class="fill-list">
                <h4 id="url"></h4>
            </div>
        </div>
    </div>

    <script>
        function upPop(obj1){
            $("#url").html(obj1);
            $("#title").html("内容");
            $('.upPop-box').upPop();

        }
    </script>

@endsection